package com.command;

public class Light {
    private boolean on;
    private String name;

    public Light(String name) {
        this.name = name;
    }

    public void on(){
        this.on = true;
    }

    public void off(){
        this.on = false;
    }

    @Override
    public String toString() {
        return "Light{" +
                "on=" + on +
                '}';
    }
}
